package com.dmai.capacity.platform.user.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作日志
 */
@Data
public class SysLog implements Serializable {

    private static final long serialVersionUID = 4497149010220586111L;
    @JsonSerialize(using=ToStringSerializer.class)
    private String id;
    private String module;
    private String businessKey;
    private String content;
    private String flag;


    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private Long createUserid;
    private String createUsername;

    private String tenantId;
}
